<!DOCTYPE html>
<html lang="en">{% load i18n static %}
<head>
    <title>{% block title %} Taste Room {% endblock %}</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link href="{% static 'oa/bootstrap.min.css' %}" rel="stylesheet">
    <link href="{% static 'oa/bootstrap-datepicker/css/bootstrap-datepicker.min.css' %}" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-inverse" role="navigation" style="border-radius: 0;">
    <div class="container-fluid">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#example-navbar-collapse">
            <span class="sr-only">切换导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/page/">Taste Room</a>
    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
        <ul class="nav navbar-nav">{% if perms.approval.add_application %}
            <li><a href="/page/approval/application_add/">发起报销申请</a></li>{% endif %}
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">报销申请列表<b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="/page/approval/applications/?g=1">我的申请</a></li>
                    <li><a href="/page/approval/applications/?g=2">待我审批</a></li>
                    <li><a href="/page/approval/applications/?g=3">我已审批</a></li>
                </ul>
            </li>{% if perms.approval.view_project %}
            <li><a href="/page/approval/projects/">项目列表</a></li>{% endif %}{% if request.user.is_staff %}{% if perms.approval.change_project %}
            <li><a href="/page/approval/management/">管理模块</a></li>{% endif %}{% endif %}
        </ul>
    </div>
    </div>
</nav>
{% block content %} {% endblock %}
</body>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="{% static 'oa/jquery.min.js' %}"></script>
    <script src="{% static 'oa/bootstrap.min.js' %}"></script>
    <script src="{% static 'oa/moment-with-locales.js' %}"></script>
    <script src="{% static 'oa/bootstrap-datepicker/js/bootstrap-datepicker.min.js' %}"></script>
    <script src="{% static 'oa/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js' %}"></script>
{% block this_js %} {% endblock %}
</html>